package com.cn.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cn.pojo.Category;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cn.pojo.Dish;

public interface DishService extends IService<Dish> {

    Page<Dish> selectAllByPid(Page page, String name, Integer status,
                              Long pid, Long id);

    Page<Dish> selectAllByDish(Page page, String name, Integer status,
                               Long categoryId);

    Integer getInsert(Dish dish);

    Integer getUpdate(Dish dish);

    Integer getDelete(Long id);

    Dish selectById(Long id);

    Category selectBy(Long id);


}

